<HTML><HEAD><TITLE>halve(+List, ?Front, ?Back)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(lists)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>halve(+List, ?Front, ?Back)</H1>
Split a list in the middle
<H2>Description</H2>
Returns two lists (Front and Back) which can be concatenated to give
	the original List. The length of the sub-lists is half the length of
	the original. If the original length is odd, Front is one longer
<H3>Modes and Determinism</H3><UL>
<LI>halve(+, -, -) is det
</UL>
<H2>Examples</H2>
<PRE>	halve([a,b,c,d,e,f], [a,b,c], [d,e,f])
	halve([a,b,c,d,e,f,g], [a,b,c,d], [e,f,g])</PRE>
<H2>See Also</H2>
<A HREF="../../lib/lists/append-3.html">append / 3</A>
</BODY></HTML>
